<!DOCTYPE html>
<html ng-app = 'app'>
<head>
    <title>checked</title>
    
<script type="text/javascript" src="${resource}/plugins/My97DatePicker/WdatePicker.js?rand=${rand}"></script>    
    
    
    <script src="../AngularJS/angular-1.5.0/angular.min.js"></script>
</head>
<body ng-controller='ctrl'>
 <input ng-show="issue.name=='date'" type="text" ng-model="answer" class="Wdate text-date" date-picker/>
   <!-- <input type="text" ng-model="checked">click
 
    <div ng-if="checked">content</div>
 
    -->
   

<!-- <div ng-repeat="d in data track by $index">{{d}}</div>-->
<input ng-model='y' /><br />
 <select ng-model='y' ng-options = "x.name for x in data"></select> 
  <select ng-model='y' ng-options = "x.name for x in data"></select> 
 <div>{{y==data[2]}}</div>
</body>
<script>
var app = angular.module("app",[]);
app.controller('ctrl',function($scope){
	$scope.data = [
				{'name':'aa','val':'11'},
				{'name':'bb','val':'22'},
				{'name':'cc','val':'33'},
				{'name':'dd','val':'44'}
	]
	 $scope.y = $scope.data[2]
//	var a = {"a":11,"b":22,"c":"cc"};
//	for (var x in a) {
//		console.log(x)
//		console.log(a[x])
//	}
	
	 
});
 	
  	 
 </script>
</html>

 
 
<!--

issue.directive('datePicker', function () {
    return {
        restrict: 'A',
        require: 'ngModel',
        link: function (scope, element, attr, ngModel) {
        	
        	element.val(ngModel.$viewValue);
    		function onpicking(dp) {
    			var date = dp.cal.getNewDateStr();
    			scope.$apply(function () {
    				ngModel.$setViewValue(date);
    			});
    		}
    		element.bind('click', function () {
    			WdatePicker({
    				onpicking: onpicking,
    				dateFmt: (attr.datefmt || 'yyyy-MM-dd')
    			})
    		});

        }
    };
}); -->













